package com.molichuxing.services.infrastructure.service;

import com.molichuxing.services.infrastructure.dto.request.create.YearlyInspectionCreateDto;
import com.molichuxing.services.infrastructure.dto.request.create.YearlyInspectionLogCreateDto;
import com.molichuxing.services.infrastructure.dto.response.YearlyInspectionLogDto;

import java.util.List;
import java.util.Map;

/**
 * 年检 服务类
 *
 * @author zhaopenghui
 */
public interface YearlyInspectionLogService {

    /**
     * 年检新增
     *
     * @param createDto
     * @return
     */
    public Integer createYearlyInspectionLog(YearlyInspectionLogCreateDto createDto);

    /**
     * 年检记录
     *
     * @param carId
     * @return
     */
    public List<YearlyInspectionLogDto> getYearlyInspectionLogListByCarId(Integer carId);

    /**
     * 年检批量新增
     *
     * @param createDtoList
     * @return
     */
    public Boolean createYearlyInspectionLogBatch(List<YearlyInspectionLogCreateDto> createDtoList);

    /**
     * 年检记录个数
     *
     * @param carIdList
     * @return
     */
    public Map<Integer, Integer> getYearlyInspectionLogCount(List<Integer> carIdList);

    /**
     * 获取记录
     * @param carId
     * @return
     */
    public YearlyInspectionLogDto getNewYearlyInspectionLogByCarId(Integer carId);
}
